﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import flash.utils.*;

    public class SArenaPlayerRewardMsg extends IMessageBase
    {
        public var copyType:int;
        public var playerRewards:Dictionary;
        public const _type:int = 7018;
        public static var _regist:SArenaPlayerRewardMsg = new SArenaPlayerRewardMsg(true);

        public function SArenaPlayerRewardMsg(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SArenaPlayerRewardMsg();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.copyType);
            DictSArenaPlayerRewardHelper.write(param1, this.playerRewards);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.copyType = param1.readInt();
            this.playerRewards = DictSArenaPlayerRewardHelper.read(param1);
            return;
        }// end function

    }
}
